/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.vijayan.profile.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import com.vijayan.profile.model.Profile;

/**
 * The persistence interface for the profile service.
 *
 * <p>
 * Never modify or reference this interface directly. Always use {@link ProfileUtil} to access the profile persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
 * </p>
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author vijayan
 * @see ProfilePersistenceImpl
 * @see ProfileUtil
 * @generated
 */
public interface ProfilePersistence extends BasePersistence<Profile> {
	/**
	* Caches the profile in the entity cache if it is enabled.
	*
	* @param profile the profile to cache
	*/
	public void cacheResult(com.vijayan.profile.model.Profile profile);

	/**
	* Caches the profiles in the entity cache if it is enabled.
	*
	* @param profiles the profiles to cache
	*/
	public void cacheResult(
		java.util.List<com.vijayan.profile.model.Profile> profiles);

	/**
	* Creates a new profile with the primary key. Does not add the profile to the database.
	*
	* @param profileId the primary key for the new profile
	* @return the new profile
	*/
	public com.vijayan.profile.model.Profile create(long profileId);

	/**
	* Removes the profile with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param profileId the primary key of the profile to remove
	* @return the profile that was removed
	* @throws com.vijayan.profile.NoSuchProfileException if a profile with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile remove(long profileId)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	public com.vijayan.profile.model.Profile updateImpl(
		com.vijayan.profile.model.Profile profile, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the profile with the primary key or throws a {@link com.vijayan.profile.NoSuchProfileException} if it could not be found.
	*
	* @param profileId the primary key of the profile to find
	* @return the profile
	* @throws com.vijayan.profile.NoSuchProfileException if a profile with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile findByPrimaryKey(long profileId)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds the profile with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param profileId the primary key of the profile to find
	* @return the profile, or <code>null</code> if a profile with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile fetchByPrimaryKey(long profileId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the profile where profileCode = &#63; or throws a {@link com.vijayan.profile.NoSuchProfileException} if it could not be found.
	*
	* @param profileCode the profile code to search with
	* @return the matching profile
	* @throws com.vijayan.profile.NoSuchProfileException if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile findByProfileCode(
		java.lang.String profileCode)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds the profile where profileCode = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
	*
	* @param profileCode the profile code to search with
	* @return the matching profile, or <code>null</code> if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile fetchByProfileCode(
		java.lang.String profileCode)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the profile where profileCode = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
	*
	* @param profileCode the profile code to search with
	* @return the matching profile, or <code>null</code> if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile fetchByProfileCode(
		java.lang.String profileCode, boolean retrieveFromCache)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds all the profiles where addedBy = &#63;.
	*
	* @param addedBy the added by to search with
	* @return the matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByUserId(
		long addedBy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the profiles where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param addedBy the added by to search with
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @return the range of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByUserId(
		long addedBy, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the profiles where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param addedBy the added by to search with
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByUserId(
		long addedBy, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first profile in the ordered set where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param addedBy the added by to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching profile
	* @throws com.vijayan.profile.NoSuchProfileException if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile findByUserId_First(long addedBy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds the last profile in the ordered set where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param addedBy the added by to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching profile
	* @throws com.vijayan.profile.NoSuchProfileException if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile findByUserId_Last(long addedBy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds the profiles before and after the current profile in the ordered set where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param profileId the primary key of the current profile
	* @param addedBy the added by to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next profile
	* @throws com.vijayan.profile.NoSuchProfileException if a profile with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile[] findByUserId_PrevAndNext(
		long profileId, long addedBy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds all the profiles where addedBy = &#63;.
	*
	* @param addedBy the added by to search with
	* @return the matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByAddedBy(
		long addedBy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the profiles where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param addedBy the added by to search with
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @return the range of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByAddedBy(
		long addedBy, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the profiles where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param addedBy the added by to search with
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByAddedBy(
		long addedBy, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first profile in the ordered set where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param addedBy the added by to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching profile
	* @throws com.vijayan.profile.NoSuchProfileException if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile findByAddedBy_First(long addedBy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds the last profile in the ordered set where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param addedBy the added by to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching profile
	* @throws com.vijayan.profile.NoSuchProfileException if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile findByAddedBy_Last(long addedBy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds the profiles before and after the current profile in the ordered set where addedBy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param profileId the primary key of the current profile
	* @param addedBy the added by to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next profile
	* @throws com.vijayan.profile.NoSuchProfileException if a profile with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile[] findByAddedBy_PrevAndNext(
		long profileId, long addedBy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds all the profiles where status = &#63;.
	*
	* @param status the status to search with
	* @return the matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByStatus(
		int status) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the profiles where status = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param status the status to search with
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @return the range of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByStatus(
		int status, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the profiles where status = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param status the status to search with
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findByStatus(
		int status, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first profile in the ordered set where status = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param status the status to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching profile
	* @throws com.vijayan.profile.NoSuchProfileException if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile findByStatus_First(int status,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds the last profile in the ordered set where status = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param status the status to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching profile
	* @throws com.vijayan.profile.NoSuchProfileException if a matching profile could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile findByStatus_Last(int status,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds the profiles before and after the current profile in the ordered set where status = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param profileId the primary key of the current profile
	* @param status the status to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next profile
	* @throws com.vijayan.profile.NoSuchProfileException if a profile with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public com.vijayan.profile.model.Profile[] findByStatus_PrevAndNext(
		long profileId, int status,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Finds all the profiles.
	*
	* @return the profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the profiles.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @return the range of profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the profiles.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of profiles
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Profile> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the profile where profileCode = &#63; from the database.
	*
	* @param profileCode the profile code to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByProfileCode(java.lang.String profileCode)
		throws com.liferay.portal.kernel.exception.SystemException,
			com.vijayan.profile.NoSuchProfileException;

	/**
	* Removes all the profiles where addedBy = &#63; from the database.
	*
	* @param addedBy the added by to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByUserId(long addedBy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the profiles where addedBy = &#63; from the database.
	*
	* @param addedBy the added by to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByAddedBy(long addedBy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the profiles where status = &#63; from the database.
	*
	* @param status the status to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByStatus(int status)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the profiles from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the profiles where profileCode = &#63;.
	*
	* @param profileCode the profile code to search with
	* @return the number of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public int countByProfileCode(java.lang.String profileCode)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the profiles where addedBy = &#63;.
	*
	* @param addedBy the added by to search with
	* @return the number of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public int countByUserId(long addedBy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the profiles where addedBy = &#63;.
	*
	* @param addedBy the added by to search with
	* @return the number of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public int countByAddedBy(long addedBy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the profiles where status = &#63;.
	*
	* @param status the status to search with
	* @return the number of matching profiles
	* @throws SystemException if a system exception occurred
	*/
	public int countByStatus(int status)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the profiles.
	*
	* @return the number of profiles
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets all the my photos associated with the profile.
	*
	* @param pk the primary key of the profile to get the associated my photos for
	* @return the my photos associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.MyPhoto> getMyPhotos(
		long pk) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets a range of all the my photos associated with the profile.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the profile to get the associated my photos for
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @return the range of my photos associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.MyPhoto> getMyPhotos(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets an ordered range of all the my photos associated with the profile.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the profile to get the associated my photos for
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of my photos associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.MyPhoto> getMyPhotos(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets the number of my photos associated with the profile.
	*
	* @param pk the primary key of the profile to get the number of associated my photos for
	* @return the number of my photos associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public int getMyPhotosSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Determines whether the my photo is associated with the profile.
	*
	* @param pk the primary key of the profile
	* @param myPhotoPK the primary key of the my photo
	* @return whether the my photo is associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsMyPhoto(long pk, long myPhotoPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Determines whether the profile has any my photos associated with it.
	*
	* @param pk the primary key of the profile to check for associations with my photos
	* @return whether the profile has any my photos associated with it
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsMyPhotos(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets all the my expectations associated with the profile.
	*
	* @param pk the primary key of the profile to get the associated my expectations for
	* @return the my expectations associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.MyExpectation> getMyExpectations(
		long pk) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets a range of all the my expectations associated with the profile.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the profile to get the associated my expectations for
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @return the range of my expectations associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.MyExpectation> getMyExpectations(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets an ordered range of all the my expectations associated with the profile.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the profile to get the associated my expectations for
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of my expectations associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.MyExpectation> getMyExpectations(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets the number of my expectations associated with the profile.
	*
	* @param pk the primary key of the profile to get the number of associated my expectations for
	* @return the number of my expectations associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public int getMyExpectationsSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Determines whether the my expectation is associated with the profile.
	*
	* @param pk the primary key of the profile
	* @param myExpectationPK the primary key of the my expectation
	* @return whether the my expectation is associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsMyExpectation(long pk, long myExpectationPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Determines whether the profile has any my expectations associated with it.
	*
	* @param pk the primary key of the profile to check for associations with my expectations
	* @return whether the profile has any my expectations associated with it
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsMyExpectations(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets all the family members associated with the profile.
	*
	* @param pk the primary key of the profile to get the associated family members for
	* @return the family members associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.FamilyMember> getFamilyMembers(
		long pk) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets a range of all the family members associated with the profile.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the profile to get the associated family members for
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @return the range of family members associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.FamilyMember> getFamilyMembers(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets an ordered range of all the family members associated with the profile.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the profile to get the associated family members for
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of family members associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.FamilyMember> getFamilyMembers(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets the number of family members associated with the profile.
	*
	* @param pk the primary key of the profile to get the number of associated family members for
	* @return the number of family members associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public int getFamilyMembersSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Determines whether the family member is associated with the profile.
	*
	* @param pk the primary key of the profile
	* @param familyMemberPK the primary key of the family member
	* @return whether the family member is associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsFamilyMember(long pk, long familyMemberPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Determines whether the profile has any family members associated with it.
	*
	* @param pk the primary key of the profile to check for associations with family members
	* @return whether the profile has any family members associated with it
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsFamilyMembers(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets all the horoscopes associated with the profile.
	*
	* @param pk the primary key of the profile to get the associated horoscopes for
	* @return the horoscopes associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Horoscope> getHoroscopes(
		long pk) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets a range of all the horoscopes associated with the profile.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the profile to get the associated horoscopes for
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @return the range of horoscopes associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Horoscope> getHoroscopes(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets an ordered range of all the horoscopes associated with the profile.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the profile to get the associated horoscopes for
	* @param start the lower bound of the range of profiles to return
	* @param end the upper bound of the range of profiles to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of horoscopes associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<com.vijayan.profile.model.Horoscope> getHoroscopes(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Gets the number of horoscopes associated with the profile.
	*
	* @param pk the primary key of the profile to get the number of associated horoscopes for
	* @return the number of horoscopes associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public int getHoroscopesSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Determines whether the horoscope is associated with the profile.
	*
	* @param pk the primary key of the profile
	* @param horoscopePK the primary key of the horoscope
	* @return whether the horoscope is associated with the profile
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsHoroscope(long pk, long horoscopePK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Determines whether the profile has any horoscopes associated with it.
	*
	* @param pk the primary key of the profile to check for associations with horoscopes
	* @return whether the profile has any horoscopes associated with it
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsHoroscopes(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;
}